package com.zzy.accessdecision.controoler;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lucas-zhang
 * @description TODO
 * @date 2022-03-25 14:39
 */
@RestController
public class TestController {

    @GetMapping("/hello")
    public String hello() {
        return "hello!";
    }

    @RequestMapping("/index")
    public String index() {
        return "index!";
    }

    @GetMapping("/root/hello")
    public String root() {
        return "hello root!";
    }

    @GetMapping("/admin/hello")
    public String admin() {
        return "hello admin!";
    }

    @GetMapping("/user/hello")
    public String user() {
        return "hello user!";
    }
}
